package com.backend.service;

import com.backend.common.AddUser;
import com.backend.common.StudentForm;
import com.backend.common.UserPassword;
import com.backend.config.Result;
import com.backend.entity.AssInformation;
import com.backend.entity.Student;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户信息相关操作;
 */
public interface UserService {

    /**
     * 学生登录;
     * @param student  ;
     * @return
     */
    Result userLogin(StudentForm student);

    Result registUser(AddUser addUser);

    Result addNewAction(String actionId,String stuId);

    Result quitClub(String assId,String stuId);

    Result AddAssAction(String userId,String actionId);

    Result getAllAssAction(String userId);

    Result getNewAction(String userId);

    Result deleteImageByUserId(String userId);

    Result getUser(String userId);

    Result updateStudentPassword(UserPassword userPassword);
    /**
     * 查询学生所属社团;
     * @param stuId  ;
     * @return
     */


    Result<List<AssInformation>> lookUpUserByAss(String stuId);

    Integer uploadUserImages(String imageName,String userId);

    /**
     * 查询活动的其他参与者;
     * @param actionId  ;
     * @return
     */
    Result lookUpActionUser(String actionId);


}
